package org.ic992929.SbStart.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
  
/**
 * 定时任务
 * @author V型知识库 www.vxzsk.com
 *
 */
@Configuration
public class SchedulingConfig {
    
    @Scheduled(cron = "0/5 * * * * ?") // 每5秒执行一次
    public void scheduler() {
        System.out.println(">>>>>>>>> SchedulingConfig.scheduler()");
    }
}